package com.baidu.health.service;

import com.baidu.health.pojo.CheckChunkResult;
import com.baidu.health.util.R;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface MediaUploadService {

    R register(String fileMd5, String fileName, Long fileSize, String mimetype, String fileExt);

    CheckChunkResult checkchunk(String fileMd5, Integer chunk, Integer chunkSize);

    R uploadchunk(MultipartFile file, String fileMd5, Integer chunk) throws IOException;

    R mergechunks(String fileMd5, String fileName, Long fileSize, String mimetype, String fileExt, Long userId);
}
